package com.echo.blog.business.messageBoard.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 留言板表（留言功能目前默认必须先登录后才允许留言）
 * </p>
 *
 * @author chentl123
 * @since 2020-04-28
 */
@TableName("echo_business_message_board")
public class MessageBoard extends Model<MessageBoard> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 留言内容
     */
    private String content;
    /**
     * 坐标 | 例如 湖北|武汉
     */
    private String coordinate;
    /**
     * 网名
     */
    private String netName;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 友链
     */
    private String friendLink;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private Integer createby;

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getNetName() {
        return netName;
    }

    public void setNetName(String netName) {
        this.netName = netName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFriendLink() {
        return friendLink;
    }

    public void setFriendLink(String friendLink) {
        this.friendLink = friendLink;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MessageBoard{" +
                ", id=" + id +
                ", content=" + content +
                ", coordinate=" + coordinate +
                ", netName=" + netName +
                ", email=" + email +
                ", friendLink=" + friendLink +
                ", createTime=" + createTime +
                "}";
    }
}
